package com.hx.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hx.common.annotation.Excel;
import com.hx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单表对象 ord_orders
 *
 * @author ord
 * @date 2023-05-28
 */
public class Orders extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long ordId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderSn;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal totalAmount;

    /** 订单状态：0-&gt;待发货；1-&gt;已发货； */
    @Excel(name = "订单状态：0-&gt;待发货；1-&gt;已发货；")
    private Integer status;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String note;

    /** 物流公司(配送方式) */
    @Excel(name = "物流公司(配送方式)")
    private String deliveryCompany;

    /** 物流单号 */
    @Excel(name = "物流单号")
    private String deliverySn;

    /** 发货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deliveryTime;

    /** 删除状态：0-&gt;删除；1-&gt;正常 */
    @Excel(name = "删除状态：0-&gt;删除；1-&gt;正常")
    private Integer deteled;

    public void setOrdId(Long ordId)
    {
        this.ordId = ordId;
    }

    public Long getOrdId()
    {
        return ordId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderSn(String orderSn)
    {
        this.orderSn = orderSn;
    }

    public String getOrderSn()
    {
        return orderSn;
    }
    public void setTotalAmount(BigDecimal totalAmount)
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount()
    {
        return totalAmount;
    }
    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }
    public void setDeliveryCompany(String deliveryCompany)
    {
        this.deliveryCompany = deliveryCompany;
    }

    public String getDeliveryCompany()
    {
        return deliveryCompany;
    }
    public void setDeliverySn(String deliverySn)
    {
        this.deliverySn = deliverySn;
    }

    public String getDeliverySn()
    {
        return deliverySn;
    }
    public void setDeliveryTime(Date deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    public Date getDeliveryTime()
    {
        return deliveryTime;
    }
    public void setDeteled(Integer deteled)
    {
        this.deteled = deteled;
    }

    public Integer getDeteled()
    {
        return deteled;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("ordId", getOrdId())
            .append("userId", getUserId())
            .append("orderSn", getOrderSn())
            .append("totalAmount", getTotalAmount())
            .append("status", getStatus())
            .append("note", getNote())
            .append("deliveryCompany", getDeliveryCompany())
            .append("deliverySn", getDeliverySn())
            .append("deliveryTime", getDeliveryTime())
            .append("deteled", getDeteled())
            .append("createTime", getCreateTime())
            .toString();
    }
}
